﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using VK.Comm.TransactSql;

namespace VK.Casemeet.Lines
{
    public static class LineMemberBLL
    {
        public static int GetLineMemberCount(IList<Condition> conditionArray)
        {
            return LineMemberDAL.GetLineMemberCount(conditionArray);
        }

        public static List<LineMemberEntity> GetLineMemberList(int startRecordIndex, int endRecordIndex, IList<Condition> conditionArray, string sortField, SortMode sortMode)
        {
            return LineMemberDAL.GetLineMemberList(startRecordIndex, endRecordIndex, conditionArray, sortField, sortMode);
        }

        public static List<LineMemberEntity> GetLineMemberList(IList<Condition> conditionArray, string sortField, SortMode sortMode)
        {
            return LineMemberDAL.GetLineMemberList(conditionArray, sortField, sortMode);
        }

        public static LineMemberEntity GetLineMember(int collectgoodsID)
        {
            return LineMemberDAL.GetLineMember(collectgoodsID);
        }

        public static int InsertLineMember(LineMemberEntity collectgoods)
        {
            return LineMemberDAL.InsertLineMember(collectgoods);
        }

        public static int UpdateLineMember(LineMemberEntity collectgoods)
        {
            return LineMemberDAL.UpdateLineMember(collectgoods);
        }

        public static int DeleteLineMember(int collectgoodsID)
        {
            return LineMemberDAL.DeleteLineMember(collectgoodsID);
        }

        public static int DeleteLineMemberByMemberID(int memberID)
        {
            return LineMemberDAL.DeleteLineMemberByMemberID(memberID);
        }

        public static bool IsLineMember(int goodsID, int memberID)
        {
            return LineMemberDAL.IsLineMember(goodsID, memberID);
        }
    }
}
